package core.ui.demo;

import javafx.collections.ObservableList;
import javafx.geometry.Pos;
import javafx.scene.Node;
import javafx.scene.control.Pagination;
import javafx.scene.layout.VBox;
/**
 * @author 李瑜
 * @since JavaFX 8.0
 */
public class DemoPagination
{
	public static VBox getPagination()
	{
		VBox box = new VBox();
		box.setAlignment(Pos.TOP_RIGHT);
		box.setSpacing(5);
		
		ObservableList<Node> boxs = box.getChildren();
		
		Pagination pagination1 = new Pagination(10);
		Pagination pagination2 = new Pagination(10);
		Pagination pagination3 = new Pagination(10);
		
		boxs.add(pagination1);
		boxs.add(pagination2);
		boxs.add(pagination3);
		
		return box;
	}
}
